<?php
namespace App\Models\Relations;

/**
 *
 * @author Joker
 *        
 */
trait AreaTrait
{
    public function provinceName()
    {
        return $this->hasOne('App\Models\Area','area_id','province');
    }
    
    public function cityName() {
        return $this->hasOne('App\Models\Area','area_id','city');
    }
    
    public function areaName() {
        return $this->hasOne('App\Models\Area','area_id','area');
    }
    
}